package com.ojoin.trade.common.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.dao.ButtonDao;
import com.ojoin.trade.common.web.domain.Button;
import com.ojoin.trade.common.web.service.ButtonService;

@Service
public class ButtonServiceImpl extends BaseServiceImpl<Button> implements ButtonService {

	@Autowired 
	private ButtonDao dao;

	@Override
	protected BaseDao<Button> getBaseDao() {
		return dao;
	}

	@Override
	public List<Button> findByUserId(Button button) {
		return dao.findByUserId(button);
	}

	@Override
	public List<Button> queryButtonListByMenuIdAndUserId(Integer menuId,
			Integer userId) {
		return dao.queryButtonListByMenuIdAndUserId(menuId, userId);
	}
	
}
